/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package handler;

/**
 *
 * @author Jeppe
 */
public class HandlerFactory {
    private BrugerHandler brugerHandler;
    private MenuHandler menuHandler;
    private ProduktHandler produktHandler;
    private static HandlerFactory instance;
    
    private HandlerFactory() {
        brugerHandler = new BrugerHandler();
        menuHandler = new MenuHandler();
        produktHandler = new ProduktHandler();
    }
    
    public static HandlerFactory getInstance(){
        if(instance == null){
            instance = new HandlerFactory();            
        }
        return instance;
    }

    public BrugerHandler getBrugerHandler() {
        return brugerHandler;
    }

    public MenuHandler getMenuHandler() {
        return menuHandler;
    }

    public ProduktHandler getProduktHandler() {
        return produktHandler;
    }
    
    
    
    
    
    
}
